from api.login_api import input_user, input_password, select_station, click_button
from tools.logger import log_info


def enter_production_info(window, project_no: str, work_order: str, station_name: str):
    """
       输入生产信息并点击【确定】按钮登陆
       :param window: 登录窗口对象
       :param project_no: 项目号
       :param work_order: 工单号
       :param station_name: 工位站
       """
    log_info(f"🔧 输入项目号: {project_no}")
    input_user(window, project_no)

    log_info(f"🔧 输入工单号: {work_order}")
    input_password(window, work_order)

    log_info(f"🔧 选择工位站: {station_name}")
    select_station(window, station_name)

    log_info("🖱 点击【确定】按钮")
    click_button(window)
